﻿<UserControl x:Class="LightControls.MessagePanel"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="50" d:DesignWidth="150">
    
    <UserControl.Resources>
        <SolidColorBrush x:Key="infoBorderBrush" Color="#FFA38A0F"/>
        <SolidColorBrush x:Key="infoBgBrush" Color="#FFFCE69B"/>
        <SolidColorBrush x:Key="errorBorderBrush" Color="#FFDB3535"/>
        <SolidColorBrush x:Key="errorBgBrush" Color="#FFFCDBDB"/>

        <Storyboard x:Name="showStory" Completed="showStory_Completed">
            <DoubleAnimation Storyboard.TargetName="LayoutRoot" Storyboard.TargetProperty="Opacity" 
                From="0" To="1" By="0.1" Duration="0:0:1">
            </DoubleAnimation>
            
        </Storyboard>
        <Storyboard x:Name="hideStory" BeginTime="0:0:2" Completed="hideStory_Completed">
            <DoubleAnimation Storyboard.TargetName="LayoutRoot" Storyboard.TargetProperty="Opacity"
                From="1" To="0" By="0.1" Duration="0:0:1">
            </DoubleAnimation>
        </Storyboard>
        
    </UserControl.Resources>
    
    <Grid x:Name="LayoutRoot" Opacity="1">

        <Border x:Name="brdMain" BorderThickness="1" Background="#FFFCE69B" Height="20"
                BorderBrush="#FFA38A0F" CornerRadius="5" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Padding="1">
            <TextBlock x:Name="lblMessage" Margin="0" Text="Sample Message" FontSize="10" Foreground="Black" VerticalAlignment="Center" HorizontalAlignment="Center"/>
        </Border>
        
            
            
    </Grid>
</UserControl>
